home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.004 / xemacs-1 / xemacs-19.13 / src / s / dgux.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-08-07  |  7.9 KB  |  278 lines

  1. /* Definitions file for GNU Emacs running on Data General's DG/UX
  2.    version 4.32 upto and including 5.4.1.
  3.    Copyright (C) 1994 Free Software Foundation, Inc.
  4.  
  5. This file is part of GNU Emacs.
  6.  
  7. GNU Emacs is free software; you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation; either version 2, or (at your option)
  10. any later version.
  11.  
  12. GNU Emacs is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. GNU General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with GNU Emacs; see the file COPYING.  If not, write to
  19. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  20.  
  21. /* Synched up with: FSF 19.29. */
  22.  
  23. /*
  24.  *    Define symbols to identify the version of Unix this is.
  25.  *    Define all the symbols that apply correctly.
  26.  */
  27.  
  28. /* #define UNIPLUS */
  29. /* #define USG5 */
  30. /* #define USG */
  31. /* #define HPUX */
  32. /* #define UMAX */
  33. /* #define BSD4_1 */
  34. #define BSD4_2
  35. #define BSD4_3
  36. #define BSD4_4
  37. #define BSD
  38.  
  39. /* SYSTEM_TYPE should indicate the kind of system you are using.
  40.  It sets the Lisp variable system-type.  */
  41.  
  42. #define SYSTEM_TYPE "dgux"
  43.  
  44. /* XEmacs: There is apparently a bug in DGUX involving a SIGTTOU getting
  45.    sent to the process if a background write is attempted when we're
  46.    started under a job-control shell, if we turn on FASYNC (which we
  47.    do when SIGIO is working).  So don't use SIGIO. */
  48. #define BROKEN_SIGIO
  49.  
  50. /*
  51.  *    Define HAVE_UNIX_DOMAIN if the system supports Unix
  52.  *      domain sockets.
  53.  */
  54.  
  55. #define HAVE_UNIX_DOMAIN
  56.  
  57. /*
  58.  *    Define HAVE_PTYS if the system supports pty devices.
  59.  */
  60.  
  61. #define HAVE_PTYS
  62.  
  63. /* If your system uses COFF (Common Object File Format) then define the
  64.    preprocessor symbol "COFF".
  65.  
  66.    DGUX can use either COFF or ELF; the default is ELF.
  67.    To compile for COFF (or BCS) use the TARGET_BINARY_INTERFACE
  68.    environment variable.   */
  69.  
  70. #if defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET)
  71. #undef ELF
  72. #ifndef COFF
  73. #define COFF
  74. #endif  /* COFF */
  75. #else   /* defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET) */
  76. #undef COFF
  77. #ifndef ELF
  78. #define ELF
  79. #endif  /* ELF */
  80. #endif  /* defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET) */
  81.  
  82. #ifndef COFF /* People will probably find this apparently unreliable
  83.         till the NFS dumping bug is fixed.  */
  84.  
  85. /* It is possible to undump to ELF with DG/UX 5.4, but for revisions below
  86.    5.4.1 the undump MUST be done on a local file system, or the kernel will
  87.    panic.  ELF executables have the advantage of using shared libraries,
  88.    while COFF executables will still work on 4.2x systems. */
  89.  
  90. #define UNEXEC unexelf.o
  91.  
  92. /* This makes sure that all segments in the executable are undumped,
  93.    not just text, data, and bss.  In the case of Mxdb and shared
  94.    libraries, additional information is stored in other sections.
  95.    It does not hurt to have this defined if you don't use Mxdb or
  96.    shared libraries.  In fact, it makes no difference. */
  97.  
  98. /* Necessary for shared libraries and Mxdb debugging information. */
  99. #define USG_SHARED_LIBRARIES
  100. #endif
  101.  
  102. /* define MAIL_USE_FLOCK if the mailer uses flock
  103.    to interlock access to /usr/spool/mail/$USER.
  104.    The alternative is that a lock file named
  105.    /usr/spool/mail/$USER.lock.  */
  106.  
  107. /* #define MAIL_USE_FLOCK */
  108.  
  109. /* Define a replacement for the baud rate switch, since DG/UX uses a different
  110.    from BSD.  */
  111.  
  112. #define    BAUD_CONVERT    { 0, 110, 134, 150, 300, 600, 1200, 1800, 2400, \
  113.               4800, 9600, 19200, 38400 }
  114.  
  115. /*
  116.  *      Make WM Interface Compliant.
  117.  */
  118.  
  119. #define XICCC
  120.  
  121. /* Here, on a separate page, add any special hacks needed
  122.    to make Emacs work on this system.  For example,
  123.    you might define certain system call names that don't
  124.    exist on your system, or that do different things on
  125.    your system and must be used only through an encapsulation
  126.    (Which you should place, by convention, in sysdep.c).  */
  127.  
  128. /* Some compilers tend to put everything declared static
  129.    into the initialized data area, which becomes pure after dumping Emacs.
  130.    On these systems, you must #define static as nothing to foil this.
  131.    Note that emacs carefully avoids static vars inside functions.  */
  132.  
  133. /* #define static */
  134.  
  135. /* DG/UX SPECIFIC ADDITIONS TO TEMPLATE FOLLOW: */
  136.  
  137. /* Use the Berkeley flavors of the library routines, instead of System V.  */
  138.  
  139. #define setpgrp(pid, pgrp) setpgrp2 (pid, pgrp)
  140. #define getpgrp(pid) getpgrp2 (pid)
  141.  
  142. /* Use TERMINFO instead of termcap */
  143.  
  144. #define    TERMINFO
  145.  
  146. /*
  147.  *      Send signals to subprocesses using characters.
  148.  *
  149.  */
  150.  
  151. #define SIGNALS_VIA_CHARACTERS
  152.  
  153. /*
  154.  *    Prevent redundant inclusion of termio.h.
  155.  */
  156.  
  157. #define NO_TERMIO
  158.  
  159. /*
  160.  *    Use a Berkeley style sys/wait.h.
  161.  *      This makes WIF* macros operate on structures instead of ints.
  162.  */
  163.  
  164. #define _BSD_WAIT_FLAVOR
  165.  
  166. /* #define SYSTEM_MALLOC */
  167.  
  168. /* MAKING_MAKEFILE must be defined in "ymakefile" before including config.h */
  169. #ifndef THIS_IS_YMAKEFILE
  170.  
  171. /* Define this if you use System 5 Release 4 Streams */
  172.  
  173. #define INTERRUPTIBLE_OPEN
  174. #define INTERRUPTIBLE_CLOSE
  175. /* can't hurt to define these, even though read/write should auto restart */
  176. #define INTERRUPTIBLE_IO
  177.  
  178. #else /* THIS_IS_YMAKEFILE */
  179. /* force gcc to be used */
  180. CC=gcc
  181. #endif /* not THIS_IS_YMAKEFILE */
  182.  
  183. #define ORDINARY_LINK
  184. #define START_FILES pre-crt0.o
  185. #define LIB_GCC /usr/lib/gcc/libgcc.a
  186.  
  187. #ifdef _M88KBCS_TARGET
  188. /* Karl Berry says: the environment
  189.    recommended by gcc (88/open, a.k.a. m88kbcs) doesn't support some system
  190.    functions, and gcc doesn't make it easy to switch environments.  */
  191. #define NO_GET_LOAD_AVG
  192. #endif
  193.  
  194. /* definitions for xmakefile production */
  195. #ifdef COFF
  196.  
  197. /* Define the following to use all of the available pty's. */
  198.  
  199. #define PTY_ITERATION                         \
  200.   for (c = 'p'; c < 't'; c++)                    \
  201.     for (i = 0; (((c == 'p') && (i < 64)) || ((c != 'p') && (i < 16))); i++)
  202.  
  203. #define PTY_NAME_SPRINTF                    \
  204.       if (c == 'p')                        \
  205.         sprintf (pty_name, "/dev/pty%c%d", c, i);        \
  206.       else                            \
  207.         sprintf (pty_name, "/dev/pty%c%x", c, i);
  208.  
  209. #define PTY_TTY_NAME_SPRINTF                    \
  210.       if (c == 'p')                        \
  211.         sprintf (pty_name, "/dev/tty%c%d", c, i);        \
  212.       else                            \
  213.         sprintf (pty_name, "/dev/tty%c%x", c, i);
  214.  
  215. #define C_DEBUG_SWITCH -g
  216.  
  217. #else /* not COFF */
  218.  
  219. /* We are generating ELF object format.  This makes the system more
  220.    SVR4 like. */
  221.  
  222. #define SVR4
  223.  
  224. /* Pseudo-terminal support under SVR4 only loops to deal with errors. */
  225.  
  226. #define PTY_ITERATION for (i = 0; i < 1; i++)
  227.  
  228. /* This sets the name of the master side of the PTY. */
  229.  
  230. #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptmx");
  231.  
  232. /* This sets the name of the slave side of the PTY.  On SysVr4,
  233.    grantpt(3) forks a subprocess, so keep sigchld_handler() from
  234.    intercepting that death.  If any child but grantpt's should die
  235.    within, it should be caught after EMACS_UNBLOCK_SIGNAL. */
  236.  
  237. #define PTY_TTY_NAME_SPRINTF                \
  238.   {                            \
  239.     char *ptyname;                    \
  240.                             \
  241.     EMACS_BLOCK_SIGCHLD;                \
  242.     if (grantpt (fd) == -1)                \
  243.       { close (fd); return -1; }            \
  244.     EMACS_UNBLOCK_SIGCHLD;                \
  245.     if (unlockpt (fd) == -1)                \
  246.       { close (fd); return -1; }            \
  247.     if (!(ptyname = ptsname (fd)))            \
  248.       { close (fd); return -1; }            \
  249.     strncpy (pty_name, ptyname, sizeof (pty_name));    \
  250.     pty_name[sizeof (pty_name) - 1] = 0;        \
  251.   }
  252.  
  253. /* Push various streams modules onto a PTY channel. */
  254.  
  255. #define SETUP_SLAVE_PTY \
  256.   if (ioctl (xforkin, I_PUSH, "ptem") == -1)    \
  257.     fatal ("ioctl I_PUSH ptem", errno);        \
  258.   if (ioctl (xforkin, I_PUSH, "ldterm") == -1)    \
  259.     fatal ("ioctl I_PUSH ldterm", errno);    \
  260.   if (ioctl (xforkin, I_PUSH, "ttcompat") == -1) \
  261.     fatal ("ioctl I_PUSH ttcompat", errno);
  262.  
  263. #ifdef __GNUC__
  264. #define C_DEBUG_SWITCH -g -V2 -mversion-03.00 -mstandard
  265. #endif
  266.  
  267. #endif /* ELF */
  268.  
  269. /* Extra stuff which probably should be someplace else but is here out
  270.    of expediency. */
  271.  
  272. #define LIB_X11_LIB -lX11
  273. #define LIB_MOTIF -lXm -lgen
  274.  
  275. /* Formerly "BSD_PGRPS" */
  276.  
  277. #define SIGIO_REQUIRES_SEPARATE_PROCESS_GROUP
  278.